<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>

<form id="orgEditForm" class="layui-form layuimini-form">

    <input type="hidden" name = "id" id="id">

    <div class="layui-form-item">
        <label class="layui-form-label required">机构编码</label>
        <div class="layui-input-block">
            <input type="text" readonly name="organizationCode" placeholder="请输入机构编码" lay-verify="required" lay-reqtext="机构编码不能为空" value="" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">机构名称</label>
        <div class="layui-input-block">
            <input type="text" name="organizationName" placeholder="请输入机构名称" lay-verify="required" lay-reqtext="机构名称不能为空" value="" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">说明</label>
        <div class="layui-input-block">
            <textarea name="remark" placeholder="请输入说明" class="layui-textarea"></textarea>
        </div>
    </div>
</form>
<script src="../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="../../lib/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
<script>
    layui.use(['form'], function () {
    });

    var callbackData = function () {
        let dataArr = $("#orgEditForm").serializeArray();
        let formData = {};
        dataArr.every( item => {
            formData[item.name] = item.value;
            return true;
        })
        return formData;
    }
</script>
</body>
</html>